import request from '@/utils/request'

// 查询奖品配置列表
export function listPrizes(query) {
  return request({
    url: '/data/prizes/list',
    method: 'get',
    params: query
  })
}

// 查询奖品配置详细
export function getPrizes(id) {
  return request({
    url: '/data/prizes/' + id,
    method: 'get'
  })
}

// 新增奖品配置
export function addPrizes(data) {
  return request({
    url: '/data/prizes',
    method: 'post',
    data: data
  })
}

// 修改奖品配置
export function updatePrizes(data) {
  return request({
    url: '/data/prizes',
    method: 'put',
    data: data
  })
}

// 删除奖品配置
export function delPrizes(id) {
  return request({
    url: '/data/prizes/' + id,
    method: 'delete'
  })
}
